//
// convertTo.hpp for Nibbler in /home/morel_t//Rendu/cplusplus/nibbler-2015-jousse_f
// 
// Made by thomas morel
// Login   <morel_t@epitech.net>
// 
// Started on  Mon Mar 12 17:25:35 2012 thomas morel
// Last update Mon Mar 12 17:25:36 2012 thomas morel
//

#ifndef CONVERTTO_HPP_
# define CONVERTTO_HPP_

#include <string>
#include <sstream>

template<typename T>
std::string		toString(T number)
{
  std::stringstream	stream;

  stream << number;
  return (stream.str());
}

template<typename T>
T			toNumber(std::string str)
{
  T			value;
  std::stringstream	stream;

  stream << str;
  stream >> value;
  return (value);
}

#endif /* !CONVERTTO_HPP_ */
